/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BLL;

import DAL.Support;
import DTO.dThanphien;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author HuyTQ
 */
public class bSupport {
    Support sp= new Support();
    dThanphien dtp=new dThanphien();
    
 public ResultSet Loadthanphienkt (String manv)
    {
     return sp.Loadthanphienkt(manv);
    }
public ResultSet Searchthanphienkt (String matp)
    {
        return sp.Searchthanphienkt(matp);
    }
public int Updatethanphienkt (String matp,String tinhtrang,String chiphi) throws SQLException
    {
        dtp.setMa_tp(matp);
        dtp.setTinh_trang(tinhtrang);
        dtp.setChi_phi(chiphi);
        return sp.Updatethanphienkt(dtp);
        
    }
  public int  updatefix () throws SQLException
    {
       
        return sp.Updatefix();
    }
}